From: Colin Walters Date: Thu, 23 Jun 2011 23:22:43 +0000 (-0400) Subject: telepathyClient: Don't ignore GAsyncReadyCallback X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8155 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5c6e5ef6d003e44d670cec7235c3b7522726c526;p=gnome-shell.git telepathyClient: Don't ignore GAsyncReadyCallback This is better for memory management, and we'll see any errors this way, which we may eventually want to do something with. We need to make this change because gjs recently started checking (allow-none) on callbacks. --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index c4090b68a..5fb7fb0b9 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -382,7 +382,7 @@ Source.prototype = { } let msg = Tp.ClientMessage.new_text(type, text); - this._channel.send_message_async(msg, 0, null); + this._channel.send_message_async(msg, 0, Lang.bind(this, function (src, result) { this._channel.send_message_finish(src, result); })); }, _presenceChanged: function (contact, presence, status, message) {